package com.zhc.validate.constants;

public class Constant {
    public static final String PACKAGE_NAME = "com.zhc.validate.target";
    public static final String PRIORITY_START = "\u001B[1;35m";
    public static final String METHOD_START = "\u001B[1;34m";
    public static final String CLASS_START = "\u001B[38;2;218;138;103m";
    public static final String RED_START = "\u001B[1;31m";
    public static final String END = "\u001B[0m";

    public static String getClassStr(String string) {
        return CLASS_START + string + END;
    }

    public static String getMethodStr(String string) {
        return METHOD_START + string + END;
    }

    public static String getPriorityStr(String string) {
        return PRIORITY_START + string + END;
    }

    public static String getEndLineStr(String endLine) {
        return RED_START + endLine + END;
    }

    public static String getTaskString(String classStr, String methodStr, String priorityStr, String endLine) {
        return getEndLineStr(endLine) + "\nTask:\n" + getClassStr(classStr) + getMethodStr(methodStr) + getPriorityStr(priorityStr) + getEndLineStr(endLine);
    }
}
